//
//  ISPRootTool.m
//  isou_pad
//
//  Created by wangneihan on 16/4/23.
//  Copyright © 2016年 isou. All rights reserved.
//

#import "ISPRootTool.h"
#import "ISPHomeController.h"
#define WBVersionKey @"version"

@implementation ISPRootTool

+(void)chooseRootController:(UIWindow *)window{
    // 1. 获取当前版本号
   // NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleVersion"];
    // 2. 获取上一个版本号
    //NSString *lastVersion = [[NSUserDefaults standardUserDefaults] objectForKey:WBVersionKey];
   // if([currentVersion isEqualToString:lastVersion])
    //{
//        ISPHomeController *wbcontrol = [[ISPHomeController alloc]init];
//        window.rootViewController = wbcontrol;
    
    //}
   // else
   // {
        //WBNewFeatureController *wbcontrol = [[WBNewFeatureController alloc]init];
        //window.rootViewController = wbcontrol;
        //[[NSUserDefaults standardUserDefaults]setObject:currentVersion forKey:WBVersionKey];
    //}
    
    
    
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"ISZSHome" bundle:nil];
    ISPHomeController *homeVc = [sb instantiateViewControllerWithIdentifier:@"ISPHomeControllerKey"];
    window.rootViewController = homeVc;
}

@end
